package com.lwy.common.exception;

/**
 * @author shkstart
 * @date 2020/12/03 -19:03
 */
public enum BizCodeEnume {


    MEMBER_MODIFY_FAILED(10010,"用户信息修改失败"),
    LOGIN_FAILED(501,"登陆失败,请重新输入"),
    REGIST_USERNAME_FAILED(201,"注册失败:用户名已存在"),
    REGIST_PHONE_FAILED(202,"注册失败:电话已被注册"),
    SMS_CODE_EXCEPTION(301,"验证码获取频率太高，请稍后再试"),
    USERNAME_PASSWORD_INVALID_EXCEPTION(401,"账户密码错误");
    private int code;
    private String msg;
    BizCodeEnume(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
